package com.googlecode.springgameengine.resource;

/**
 *
 * @author Maciej
 */
public class MaterialDescriptor extends ResourceDescriptor {
	
	private String filename;
	
	public MaterialDescriptor(String filename) {
		this.filename = filename;
	}

	public String getFilename() {
		return filename;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final MaterialDescriptor other = (MaterialDescriptor) obj;
		if ((this.filename == null) ? (other.filename != null) : !this.filename.equals(other.filename)) {
			return false;
		}
		return true;
	}

	@Override
	public int hashCode() {
		int hash = 7;
		hash = 73 * hash + (this.filename != null ? this.filename.hashCode() : 0);
		return hash;
	}
}
